# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libngf-qt
pkgver=0.6.4
pkgrel=0
pkgdesc="Qt-based client for NGF daemon (Non-Graphic Feedback)."
url="https://git.sailfishos.org/mer-core/libngf-qt"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/libngf-qt/-/archive/$pkgver/libngf-qt-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	qmake-qt5 \
		PREFIX=/usr
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="51df1cbf8092e16eed073a1cdff88f35b9c8411172fe28b08fa7b54562238b6fca8d68f9348183866b2a265682596db296d5e115c9184b6f46e9da39efa3a8aa  libngf-qt-0.6.4.tar.gz"
